<%--
  Created by IntelliJ IDEA.
  User: 黑白客
  Date: 2019/5/30
  Time: 11:10
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<H2>使用Post 方法 获取表单数据</H2>
<ul>
    <li><p><b>站点名：</b>
        <%
   //解决中文乱码问题
        String name = new
            String((request.getParameter("name")).getBytes("ISO-8859-1"),
            "UTF-8");
        %>
        <%=name%>
    </p></li>
    <li><p>
        <b>网址：</b>
        <%=request.getParameter("url")%>
    </p></li>
</ul>
</body>
</html>